package com.zzxy.mybati34.entity;

import java.util.Date;
import java.util.List;

public class User {
private  int id;
private String username;
private Date birthday;
private String address;
private String sex;
private List<Order>orders;

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }

    public User() {
    }

    public User(String username, Date birthday, String address, String sex) {

        this.username = username;
        this.birthday = birthday;
        this.address = address;
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "User{"+
                "id="+id+'\''+
                "username="+username+'\''+
                "date="+birthday+'\''+
                "password="+address+'\''+
                "sex="+sex+'\''+
                '}';
    }
    public Date getBirthday(){
        return birthday;
    }
    public void setBirthday(Date birthday){
        this.birthday=birthday;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getDate() {
        return birthday;
    }

    public void setDate(Date date) {
        this.birthday = date;
    }

    public String getPassword() {
        return address;
    }

    public void setPassword(String password) {
        this.address = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
